.class public Lcom/glympse/android/glympse/DlgTwitterSettings;
.super Lcom/glympse/android/glympse/DlgShell;
.source "DlgTwitterSettings.java"

# interfaces
.implements Lcom/glympse/android/glympse/DlgShell$DlgShellListener;
.implements Landroid/text/TextWatcher;
.implements Lcom/glympse/platform/common/TwitterJobs$SignInCallback;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/glympse/android/glympse/DlgTwitterSettings$OnClickListenerSignInOut;
    }
.end annotation


# instance fields
.field private m_fAddRecipientWhenDone:Z

.field private m_fAnimating:Z

.field private m_fIsSigningIn:Z

.field private m_oButtonAction:Landroid/widget/Button;

.field private m_oEditPassword:Landroid/widget/EditText;

.field private m_oEditUsername:Landroid/widget/EditText;

.field private m_oImageProgress:Landroid/widget/ImageView;

.field private m_oLayoutProgress:Landroid/widget/LinearLayout;

.field private m_oTextName:Landroid/widget/TextView;

.field private m_oTextPasswordPrompt:Landroid/widget/TextView;

.field private m_oTextProgress:Landroid/widget/TextView;

.field private m_oTextStatus:Landroid/widget/TextView;

.field private m_oTextUsernamePrompt:Landroid/widget/TextView;

.field private m_strSignInError:Ljava/lang/String;


# direct methods
.method public constructor <init>(Landroid/content/Context;Z)V
    .locals 3
    .parameter "oContext"
    .parameter "fAddRecipientWhenDone"

    .prologue
    const/4 v1, 0x0

    const/4 v2, 0x0

    .line 59
    const v0, 0x7f03000c

    invoke-direct {p0, p1, v2, v0}, Lcom/glympse/android/glympse/DlgShell;-><init>(Landroid/content/Context;Ljava/lang/String;I)V

    .line 41
    iput-boolean v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_fAddRecipientWhenDone:Z

    .line 42
    iput-boolean v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_fIsSigningIn:Z

    .line 43
    iput-boolean v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_fAnimating:Z

    .line 44
    iput-object v2, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_strSignInError:Ljava/lang/String;

    .line 45
    iput-object v2, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oLayoutProgress:Landroid/widget/LinearLayout;

    .line 46
    iput-object v2, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oImageProgress:Landroid/widget/ImageView;

    .line 47
    iput-object v2, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextProgress:Landroid/widget/TextView;

    .line 48
    iput-object v2, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextUsernamePrompt:Landroid/widget/TextView;

    .line 49
    iput-object v2, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextPasswordPrompt:Landroid/widget/TextView;

    .line 50
    iput-object v2, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditUsername:Landroid/widget/EditText;

    .line 51
    iput-object v2, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditPassword:Landroid/widget/EditText;

    .line 52
    iput-object v2, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextStatus:Landroid/widget/TextView;

    .line 53
    iput-object v2, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextName:Landroid/widget/TextView;

    .line 54
    iput-object v2, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oButtonAction:Landroid/widget/Button;

    .line 60
    const v0, 0x7f02004f

    invoke-virtual {p0, v0}, Lcom/glympse/android/glympse/DlgTwitterSettings;->SetTitleIcon(I)V

    .line 61
    const v0, 0x7f0a003b

    invoke-virtual {p0, v0}, Lcom/glympse/android/glympse/DlgTwitterSettings;->SetTitleText(I)V

    .line 63
    iput-boolean p2, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_fAddRecipientWhenDone:Z

    .line 65
    invoke-virtual {p0, p0}, Lcom/glympse/android/glympse/DlgTwitterSettings;->SetDlgShellListener(Lcom/glympse/android/glympse/DlgShell$DlgShellListener;)V

    .line 67
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oViewGroupPanel:Landroid/view/ViewGroup;

    const v1, 0x7f0c0033

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oLayoutProgress:Landroid/widget/LinearLayout;

    .line 68
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oViewGroupPanel:Landroid/view/ViewGroup;

    const v1, 0x7f0c0034

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oImageProgress:Landroid/widget/ImageView;

    .line 69
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oViewGroupPanel:Landroid/view/ViewGroup;

    const v1, 0x7f0c0035

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextProgress:Landroid/widget/TextView;

    .line 70
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oViewGroupPanel:Landroid/view/ViewGroup;

    const v1, 0x7f0c0036

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextUsernamePrompt:Landroid/widget/TextView;

    .line 71
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oViewGroupPanel:Landroid/view/ViewGroup;

    const v1, 0x7f0c0038

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextPasswordPrompt:Landroid/widget/TextView;

    .line 72
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oViewGroupPanel:Landroid/view/ViewGroup;

    const v1, 0x7f0c0037

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditUsername:Landroid/widget/EditText;

    .line 73
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oViewGroupPanel:Landroid/view/ViewGroup;

    const v1, 0x7f0c0039

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditPassword:Landroid/widget/EditText;

    .line 74
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oViewGroupPanel:Landroid/view/ViewGroup;

    const v1, 0x7f0c0022

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextStatus:Landroid/widget/TextView;

    .line 75
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oViewGroupPanel:Landroid/view/ViewGroup;

    const v1, 0x7f0c0004

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextName:Landroid/widget/TextView;

    .line 76
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oViewGroupPanel:Landroid/view/ViewGroup;

    const v1, 0x7f0c0023

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oButtonAction:Landroid/widget/Button;

    .line 78
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oButtonAction:Landroid/widget/Button;

    new-instance v1, Lcom/glympse/android/glympse/DlgTwitterSettings$OnClickListenerSignInOut;

    invoke-direct {v1, p0, v2}, Lcom/glympse/android/glympse/DlgTwitterSettings$OnClickListenerSignInOut;-><init>(Lcom/glympse/android/glympse/DlgTwitterSettings;Lcom/glympse/android/glympse/DlgTwitterSettings$OnClickListenerSignInOut;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 79
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditUsername:Landroid/widget/EditText;

    invoke-virtual {v0, p0}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 80
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditPassword:Landroid/widget/EditText;

    invoke-virtual {v0, p0}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    .line 83
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oViewGroupPanel:Landroid/view/ViewGroup;

    const v1, 0x7f0c0025

    invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 84
    invoke-virtual {p0}, Lcom/glympse/android/glympse/DlgTwitterSettings;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0a00a0

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    .line 83
    invoke-static {v1}, Landroid/text/Html;->fromHtml(Ljava/lang/String;)Landroid/text/Spanned;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 86
    invoke-virtual {p0}, Lcom/glympse/android/glympse/DlgTwitterSettings;->UpdateControls()V

    .line 87
    return-void
.end method

.method static synthetic access$0(Lcom/glympse/android/glympse/DlgTwitterSettings;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 42
    iput-boolean p1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_fIsSigningIn:Z

    return-void
.end method

.method static synthetic access$1(Lcom/glympse/android/glympse/DlgTwitterSettings;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 44
    iput-object p1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_strSignInError:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$2(Lcom/glympse/android/glympse/DlgTwitterSettings;)Landroid/widget/EditText;
    .locals 1
    .parameter

    .prologue
    .line 50
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditUsername:Landroid/widget/EditText;

    return-object v0
.end method

.method static synthetic access$3(Lcom/glympse/android/glympse/DlgTwitterSettings;)Landroid/widget/EditText;
    .locals 1
    .parameter

    .prologue
    .line 51
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditPassword:Landroid/widget/EditText;

    return-object v0
.end method


# virtual methods
.method public OnCancel(Lcom/glympse/android/glympse/DlgShell;)V
    .locals 0
    .parameter "oDlgShell"

    .prologue
    .line 300
    return-void
.end method

.method public OnDismissed(Lcom/glympse/android/glympse/DlgShell;Z)V
    .locals 5
    .parameter "oDlgShell"
    .parameter "fOk"

    .prologue
    const/4 v4, 0x0

    const/4 v3, 0x0

    .line 305
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditUsername:Landroid/widget/EditText;

    if-eqz v0, :cond_0

    .line 307
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditUsername:Landroid/widget/EditText;

    invoke-virtual {v0, p0}, Landroid/widget/EditText;->removeTextChangedListener(Landroid/text/TextWatcher;)V

    .line 309
    :cond_0
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditPassword:Landroid/widget/EditText;

    if-eqz v0, :cond_1

    .line 311
    iget-object v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditPassword:Landroid/widget/EditText;

    invoke-virtual {v0, p0}, Landroid/widget/EditText;->removeTextChangedListener(Landroid/text/TextWatcher;)V

    .line 315
    :cond_1
    iget-boolean v0, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_fAddRecipientWhenDone:Z

    if-eqz v0, :cond_2

    sget-object v0, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    invoke-virtual {v0}, Lcom/glympse/android/glympse/Glympse;->GetCurrentEView()Lcom/glympse/android/glympse/Glympse$EViews;

    move-result-object v0

    sget-object v1, Lcom/glympse/android/glympse/Glympse$EViews;->SendGlympse:Lcom/glympse/android/glympse/Glympse$EViews;

    if-ne v0, v1, :cond_2

    .line 316
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v0

    iget-object v0, v0, Lcom/glympse/platform/Platform;->m_oConfig:Lcom/glympse/platform/Config;

    invoke-virtual {v0}, Lcom/glympse/platform/Config;->HasTwitterCredentials()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 318
    sget-object v0, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    iget-object v0, v0, Lcom/glympse/android/glympse/Glympse;->m_oViewSendGlympse:Lcom/glympse/android/glympse/ViewSendGlympse;

    new-instance v1, Lcom/glympse/platform/common/Recipient;

    const/4 v2, 0x4

    invoke-direct {v1, v2}, Lcom/glympse/platform/common/Recipient;-><init>(I)V

    invoke-virtual {v0, v1}, Lcom/glympse/android/glympse/ViewSendGlympse;->AddRecipient(Lcom/glympse/platform/common/Recipient;)V

    .line 321
    :cond_2
    iput-boolean v4, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_fAddRecipientWhenDone:Z

    .line 322
    iput-boolean v4, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_fAnimating:Z

    .line 323
    iput-object v3, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_strSignInError:Ljava/lang/String;

    .line 324
    iput-object v3, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oLayoutProgress:Landroid/widget/LinearLayout;

    .line 325
    iput-object v3, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oImageProgress:Landroid/widget/ImageView;

    .line 326
    iput-object v3, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextProgress:Landroid/widget/TextView;

    .line 327
    iput-object v3, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextUsernamePrompt:Landroid/widget/TextView;

    .line 328
    iput-object v3, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextPasswordPrompt:Landroid/widget/TextView;

    .line 329
    iput-object v3, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditUsername:Landroid/widget/EditText;

    .line 330
    iput-object v3, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditPassword:Landroid/widget/EditText;

    .line 331
    iput-object v3, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextStatus:Landroid/widget/TextView;

    .line 332
    iput-object v3, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextName:Landroid/widget/TextView;

    .line 333
    iput-object v3, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oButtonAction:Landroid/widget/Button;

    .line 334
    return-void
.end method

.method public OnOk(Lcom/glympse/android/glympse/DlgShell;)V
    .locals 0
    .parameter "oDlgShell"

    .prologue
    .line 295
    return-void
.end method

.method public SignInComplete(ZLjava/lang/String;)V
    .locals 4
    .parameter "fSuccess"
    .parameter "strError"

    .prologue
    const/16 v2, 0x23

    const/4 v3, 0x0

    .line 269
    iput-boolean v3, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_fIsSigningIn:Z

    .line 271
    if-nez p1, :cond_0

    .line 273
    iput-object p2, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_strSignInError:Ljava/lang/String;

    .line 276
    :cond_0
    sget-object v1, Lcom/glympse/android/glympse/Glympse;->ms_oThis:Lcom/glympse/android/glympse/Glympse;

    invoke-virtual {v1}, Lcom/glympse/android/glympse/Glympse;->getWindow()Landroid/view/Window;

    move-result-object v1

    invoke-virtual {v1, v2}, Landroid/view/Window;->setSoftInputMode(I)V

    .line 277
    invoke-virtual {p0}, Lcom/glympse/android/glympse/DlgTwitterSettings;->getWindow()Landroid/view/Window;

    move-result-object v1

    invoke-virtual {v1, v2}, Landroid/view/Window;->setSoftInputMode(I)V

    .line 278
    invoke-virtual {p0}, Lcom/glympse/android/glympse/DlgTwitterSettings;->getContext()Landroid/content/Context;

    move-result-object v1

    const-string v2, "input_method"

    invoke-virtual {v1, v2}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/inputmethod/InputMethodManager;

    .line 279
    .local v0, imm:Landroid/view/inputmethod/InputMethodManager;
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oButtonAction:Landroid/widget/Button;

    invoke-virtual {v1}, Landroid/widget/Button;->getWindowToken()Landroid/os/IBinder;

    move-result-object v1

    invoke-virtual {v0, v1, v3}, Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromInputMethod(Landroid/os/IBinder;I)V

    .line 280
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditUsername:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getWindowToken()Landroid/os/IBinder;

    move-result-object v1

    invoke-virtual {v0, v1, v3}, Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromInputMethod(Landroid/os/IBinder;I)V

    .line 281
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditPassword:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getWindowToken()Landroid/os/IBinder;

    move-result-object v1

    invoke-virtual {v0, v1, v3}, Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromInputMethod(Landroid/os/IBinder;I)V

    .line 282
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditPassword:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getApplicationWindowToken()Landroid/os/IBinder;

    move-result-object v1

    invoke-virtual {v0, v1, v3}, Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromInputMethod(Landroid/os/IBinder;I)V

    .line 284
    invoke-virtual {p0}, Lcom/glympse/android/glympse/DlgTwitterSettings;->UpdateControls()V

    .line 286
    if-eqz p1, :cond_1

    iget-boolean v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_fAddRecipientWhenDone:Z

    if-eqz v1, :cond_1

    .line 288
    invoke-virtual {p0}, Lcom/glympse/android/glympse/DlgTwitterSettings;->dismiss()V

    .line 290
    :cond_1
    return-void
.end method

.method protected UpdateControls()V
    .locals 14

    .prologue
    const/4 v3, 0x1

    const/16 v13, 0x1a

    const/16 v12, 0xc0

    const/16 v11, 0x8

    const/4 v10, 0x0

    .line 114
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v1

    iget-object v1, v1, Lcom/glympse/platform/Platform;->m_oConfig:Lcom/glympse/platform/Config;

    invoke-virtual {v1}, Lcom/glympse/platform/Config;->HasTwitterCredentials()Z

    move-result v9

    .line 117
    .local v9, fSignedIn:Z
    if-eqz v9, :cond_2

    .line 120
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oLayoutProgress:Landroid/widget/LinearLayout;

    invoke-static {v1, v11}, Lcom/glympse/android/glympse/Glympse;->SetVisibilityIfChanged(Landroid/view/View;I)Z

    .line 123
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextProgress:Landroid/widget/TextView;

    const-string v2, ""

    invoke-static {v1, v2}, Lcom/glympse/android/glympse/Glympse;->SetTextIfChanged(Landroid/widget/TextView;Ljava/lang/String;)Z

    .line 126
    iput-boolean v10, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_fAnimating:Z

    .line 127
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oImageProgress:Landroid/widget/ImageView;

    invoke-virtual {v1}, Landroid/widget/ImageView;->clearAnimation()V

    .line 128
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oImageProgress:Landroid/widget/ImageView;

    const v2, 0x7f020097

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 131
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextUsernamePrompt:Landroid/widget/TextView;

    invoke-static {v1, v11}, Lcom/glympse/android/glympse/Glympse;->SetVisibilityIfChanged(Landroid/view/View;I)Z

    .line 132
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditUsername:Landroid/widget/EditText;

    invoke-static {v1, v11}, Lcom/glympse/android/glympse/Glympse;->SetVisibilityIfChanged(Landroid/view/View;I)Z

    .line 133
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextPasswordPrompt:Landroid/widget/TextView;

    invoke-static {v1, v11}, Lcom/glympse/android/glympse/Glympse;->SetVisibilityIfChanged(Landroid/view/View;I)Z

    .line 134
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditPassword:Landroid/widget/EditText;

    invoke-static {v1, v11}, Lcom/glympse/android/glympse/Glympse;->SetVisibilityIfChanged(Landroid/view/View;I)Z

    .line 137
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditUsername:Landroid/widget/EditText;

    const-string v2, ""

    invoke-static {v1, v2}, Lcom/glympse/android/glympse/Glympse;->SetTextIfChanged(Landroid/widget/TextView;Ljava/lang/String;)Z

    .line 138
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditPassword:Landroid/widget/EditText;

    const-string v2, ""

    invoke-static {v1, v2}, Lcom/glympse/android/glympse/Glympse;->SetTextIfChanged(Landroid/widget/TextView;Ljava/lang/String;)Z

    .line 141
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v1

    iget-object v1, v1, Lcom/glympse/platform/Platform;->m_oConfig:Lcom/glympse/platform/Config;

    iget-object v1, v1, Lcom/glympse/platform/Config;->m_strTwitterName:Ljava/lang/String;

    invoke-static {v1}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 143
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextStatus:Landroid/widget/TextView;

    const v2, 0x7f0a00a6

    invoke-static {v1, v2}, Lcom/glympse/android/glympse/Glympse;->SetTextIfChanged(Landroid/widget/TextView;I)Z

    .line 144
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextStatus:Landroid/widget/TextView;

    invoke-static {v1, v10}, Lcom/glympse/android/glympse/Glympse;->SetVisibilityIfChanged(Landroid/view/View;I)Z

    .line 146
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextName:Landroid/widget/TextView;

    invoke-static {v1, v11}, Lcom/glympse/android/glympse/Glympse;->SetVisibilityIfChanged(Landroid/view/View;I)Z

    .line 147
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextName:Landroid/widget/TextView;

    const-string v2, ""

    invoke-static {v1, v2}, Lcom/glympse/android/glympse/Glympse;->SetTextIfChanged(Landroid/widget/TextView;Ljava/lang/String;)Z

    .line 161
    :goto_0
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oButtonAction:Landroid/widget/Button;

    const v2, 0x7f0a00a5

    invoke-static {v1, v2}, Lcom/glympse/android/glympse/Glympse;->SetTextIfChanged(Landroid/widget/TextView;I)Z

    .line 242
    :goto_1
    iget-boolean v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_fIsSigningIn:Z

    if-nez v1, :cond_6

    if-nez v9, :cond_0

    .line 243
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditUsername:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-interface {v1}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_6

    .line 244
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditPassword:Landroid/widget/EditText;

    invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v1

    invoke-interface {v1}, Landroid/text/Editable;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    if-lez v1, :cond_6

    :cond_0
    move v7, v3

    .line 246
    .local v7, fActionEnabled:Z
    :goto_2
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oButtonAction:Landroid/widget/Button;

    invoke-virtual {v1, v7}, Landroid/widget/Button;->setEnabled(Z)V

    .line 247
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oButtonAction:Landroid/widget/Button;

    if-eqz v7, :cond_7

    const/16 v2, 0x69

    const/16 v4, 0x94

    const/16 v5, 0xd9

    invoke-static {v2, v4, v5}, Landroid/graphics/Color;->rgb(III)I

    move-result v2

    :goto_3
    invoke-virtual {v1, v2}, Landroid/widget/Button;->setTextColor(I)V

    .line 251
    if-nez v9, :cond_8

    iget-boolean v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_fIsSigningIn:Z

    if-nez v1, :cond_8

    move v8, v3

    .line 253
    .local v8, fEditEnabled:Z
    :goto_4
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditUsername:Landroid/widget/EditText;

    invoke-virtual {v1, v8}, Landroid/widget/EditText;->setEnabled(Z)V

    .line 254
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditPassword:Landroid/widget/EditText;

    invoke-virtual {v1, v8}, Landroid/widget/EditText;->setEnabled(Z)V

    .line 256
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditUsername:Landroid/widget/EditText;

    invoke-virtual {v1, v8}, Landroid/widget/EditText;->setFocusable(Z)V

    .line 257
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditPassword:Landroid/widget/EditText;

    invoke-virtual {v1, v8}, Landroid/widget/EditText;->setFocusable(Z)V

    .line 259
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditUsername:Landroid/widget/EditText;

    invoke-virtual {v1, v8}, Landroid/widget/EditText;->setFocusableInTouchMode(Z)V

    .line 260
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditPassword:Landroid/widget/EditText;

    invoke-virtual {v1, v8}, Landroid/widget/EditText;->setFocusableInTouchMode(Z)V

    .line 262
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditUsername:Landroid/widget/EditText;

    if-eqz v8, :cond_9

    invoke-static {v13, v13, v13}, Landroid/graphics/Color;->rgb(III)I

    move-result v2

    :goto_5
    invoke-virtual {v1, v2}, Landroid/widget/EditText;->setTextColor(I)V

    .line 263
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditPassword:Landroid/widget/EditText;

    if-eqz v8, :cond_a

    invoke-static {v13, v13, v13}, Landroid/graphics/Color;->rgb(III)I

    move-result v2

    :goto_6
    invoke-virtual {v1, v2}, Landroid/widget/EditText;->setTextColor(I)V

    .line 264
    return-void

    .line 153
    .end local v7           #fActionEnabled:Z
    .end local v8           #fEditEnabled:Z
    :cond_1
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextStatus:Landroid/widget/TextView;

    const v2, 0x7f0a00a7

    invoke-static {v1, v2}, Lcom/glympse/android/glympse/Glympse;->SetTextIfChanged(Landroid/widget/TextView;I)Z

    .line 154
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextStatus:Landroid/widget/TextView;

    invoke-static {v1, v10}, Lcom/glympse/android/glympse/Glympse;->SetVisibilityIfChanged(Landroid/view/View;I)Z

    .line 156
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextName:Landroid/widget/TextView;

    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v2

    iget-object v2, v2, Lcom/glympse/platform/Platform;->m_oConfig:Lcom/glympse/platform/Config;

    iget-object v2, v2, Lcom/glympse/platform/Config;->m_strTwitterName:Ljava/lang/String;

    invoke-static {v1, v2}, Lcom/glympse/android/glympse/Glympse;->SetTextIfChanged(Landroid/widget/TextView;Ljava/lang/String;)Z

    .line 157
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextName:Landroid/widget/TextView;

    invoke-static {v1, v10}, Lcom/glympse/android/glympse/Glympse;->SetVisibilityIfChanged(Landroid/view/View;I)Z

    goto/16 :goto_0

    .line 168
    :cond_2
    iget-boolean v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_fIsSigningIn:Z

    if-eqz v1, :cond_4

    .line 171
    iget-boolean v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_fAnimating:Z

    if-nez v1, :cond_3

    .line 174
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oImageProgress:Landroid/widget/ImageView;

    const v2, 0x7f020094

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 177
    new-instance v0, Landroid/view/animation/RotateAnimation;

    const/4 v1, 0x0

    const v2, 0x470ca000

    const/high16 v4, 0x3f00

    const/high16 v6, 0x3f00

    move v5, v3

    invoke-direct/range {v0 .. v6}, Landroid/view/animation/RotateAnimation;-><init>(FFIFIF)V

    .line 178
    .local v0, oAni:Landroid/view/animation/Animation;
    const/4 v1, -0x1

    invoke-virtual {v0, v1}, Landroid/view/animation/Animation;->setRepeatCount(I)V

    .line 179
    new-instance v1, Landroid/view/animation/LinearInterpolator;

    invoke-direct {v1}, Landroid/view/animation/LinearInterpolator;-><init>()V

    invoke-virtual {v0, v1}, Landroid/view/animation/Animation;->setInterpolator(Landroid/view/animation/Interpolator;)V

    .line 180
    const-wide/32 v1, 0x1adb0

    invoke-virtual {v0, v1, v2}, Landroid/view/animation/Animation;->setDuration(J)V

    .line 181
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oImageProgress:Landroid/widget/ImageView;

    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->startAnimation(Landroid/view/animation/Animation;)V

    .line 185
    .end local v0           #oAni:Landroid/view/animation/Animation;
    :cond_3
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextProgress:Landroid/widget/TextView;

    const-string v2, "Signing in..."

    invoke-static {v1, v2}, Lcom/glympse/android/glympse/Glympse;->SetTextIfChanged(Landroid/widget/TextView;Ljava/lang/String;)Z

    .line 186
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextProgress:Landroid/widget/TextView;

    const/16 v2, 0x20

    const/16 v4, 0x20

    const/16 v5, 0x20

    invoke-static {v2, v4, v5}, Landroid/graphics/Color;->rgb(III)I

    move-result v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V

    .line 189
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oLayoutProgress:Landroid/widget/LinearLayout;

    invoke-static {v1, v10}, Lcom/glympse/android/glympse/Glympse;->SetVisibilityIfChanged(Landroid/view/View;I)Z

    .line 224
    :goto_7
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextUsernamePrompt:Landroid/widget/TextView;

    invoke-static {v1, v10}, Lcom/glympse/android/glympse/Glympse;->SetVisibilityIfChanged(Landroid/view/View;I)Z

    .line 225
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextPasswordPrompt:Landroid/widget/TextView;

    invoke-static {v1, v10}, Lcom/glympse/android/glympse/Glympse;->SetVisibilityIfChanged(Landroid/view/View;I)Z

    .line 226
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditUsername:Landroid/widget/EditText;

    invoke-static {v1, v10}, Lcom/glympse/android/glympse/Glympse;->SetVisibilityIfChanged(Landroid/view/View;I)Z

    .line 227
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oEditPassword:Landroid/widget/EditText;

    invoke-static {v1, v10}, Lcom/glympse/android/glympse/Glympse;->SetVisibilityIfChanged(Landroid/view/View;I)Z

    .line 230
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextStatus:Landroid/widget/TextView;

    invoke-static {v1, v11}, Lcom/glympse/android/glympse/Glympse;->SetVisibilityIfChanged(Landroid/view/View;I)Z

    .line 231
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextStatus:Landroid/widget/TextView;

    const v2, 0x7f0a00a8

    invoke-static {v1, v2}, Lcom/glympse/android/glympse/Glympse;->SetTextIfChanged(Landroid/widget/TextView;I)Z

    .line 233
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextName:Landroid/widget/TextView;

    invoke-static {v1, v11}, Lcom/glympse/android/glympse/Glympse;->SetVisibilityIfChanged(Landroid/view/View;I)Z

    .line 234
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextName:Landroid/widget/TextView;

    const-string v2, ""

    invoke-static {v1, v2}, Lcom/glympse/android/glympse/Glympse;->SetTextIfChanged(Landroid/widget/TextView;Ljava/lang/String;)Z

    .line 237
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oButtonAction:Landroid/widget/Button;

    const v2, 0x7f0a00a4

    invoke-static {v1, v2}, Lcom/glympse/android/glympse/Glympse;->SetTextIfChanged(Landroid/widget/TextView;I)Z

    goto/16 :goto_1

    .line 193
    :cond_4
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_strSignInError:Ljava/lang/String;

    invoke-static {v1}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_5

    .line 196
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextProgress:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_strSignInError:Ljava/lang/String;

    invoke-static {v1, v2}, Lcom/glympse/android/glympse/Glympse;->SetTextIfChanged(Landroid/widget/TextView;Ljava/lang/String;)Z

    .line 197
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextProgress:Landroid/widget/TextView;

    const/16 v2, 0xe0

    const/16 v4, 0xff

    invoke-static {v2, v4, v10, v10}, Landroid/graphics/Color;->argb(IIII)I

    move-result v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V

    .line 200
    iput-boolean v10, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_fAnimating:Z

    .line 201
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oImageProgress:Landroid/widget/ImageView;

    invoke-virtual {v1}, Landroid/widget/ImageView;->clearAnimation()V

    .line 202
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oImageProgress:Landroid/widget/ImageView;

    const v2, 0x7f020095

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 205
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oLayoutProgress:Landroid/widget/LinearLayout;

    invoke-static {v1, v10}, Lcom/glympse/android/glympse/Glympse;->SetVisibilityIfChanged(Landroid/view/View;I)Z

    goto :goto_7

    .line 212
    :cond_5
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oLayoutProgress:Landroid/widget/LinearLayout;

    invoke-static {v1, v11}, Lcom/glympse/android/glympse/Glympse;->SetVisibilityIfChanged(Landroid/view/View;I)Z

    .line 215
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oTextProgress:Landroid/widget/TextView;

    const-string v2, ""

    invoke-static {v1, v2}, Lcom/glympse/android/glympse/Glympse;->SetTextIfChanged(Landroid/widget/TextView;Ljava/lang/String;)Z

    .line 218
    iput-boolean v10, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_fAnimating:Z

    .line 219
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oImageProgress:Landroid/widget/ImageView;

    invoke-virtual {v1}, Landroid/widget/ImageView;->clearAnimation()V

    .line 220
    iget-object v1, p0, Lcom/glympse/android/glympse/DlgTwitterSettings;->m_oImageProgress:Landroid/widget/ImageView;

    const v2, 0x7f020097

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    goto/16 :goto_7

    :cond_6
    move v7, v10

    .line 244
    goto/16 :goto_2

    .line 247
    .restart local v7       #fActionEnabled:Z
    :cond_7
    invoke-static {v12, v12, v12}, Landroid/graphics/Color;->rgb(III)I

    move-result v2

    goto/16 :goto_3

    :cond_8
    move v8, v10

    .line 251
    goto/16 :goto_4

    .line 262
    .restart local v8       #fEditEnabled:Z
    :cond_9
    invoke-static {v12, v12, v12}, Landroid/graphics/Color;->rgb(III)I

    move-result v2

    goto/16 :goto_5

    .line 263
    :cond_a
    invoke-static {v12, v12, v12}, Landroid/graphics/Color;->rgb(III)I

    move-result v2

    goto/16 :goto_6
.end method

.method public afterTextChanged(Landroid/text/Editable;)V
    .locals 0
    .parameter "s"

    .prologue
    .line 98
    return-void
.end method

.method public beforeTextChanged(Ljava/lang/CharSequence;III)V
    .locals 0
    .parameter "s"
    .parameter "start"
    .parameter "count"
    .parameter "after"

    .prologue
    .line 103
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 0
    .parameter "savedInstanceState"

    .prologue
    .line 92
    invoke-super {p0, p1}, Lcom/glympse/android/glympse/DlgShell;->onCreate(Landroid/os/Bundle;)V

    .line 93
    return-void
.end method

.method public onTextChanged(Ljava/lang/CharSequence;III)V
    .locals 0
    .parameter "s"
    .parameter "start"
    .parameter "before"
    .parameter "count"

    .prologue
    .line 108
    invoke-virtual {p0}, Lcom/glympse/android/glympse/DlgTwitterSettings;->UpdateControls()V

    .line 109
    return-void
.end method
